"""自定义的错误类型"""


class MessageError(Exception):
    """聊天窗口异常"""

    def __init__(self, message):
        self.error_message = message

    def __str__(self):
        return self.error_message
